package com.cy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cy.pojo.Nuser;
import com.cy.pojo.UserVO;
import org.apache.ibatis.annotations.Param;

import javax.validation.Valid;
import java.sql.Wrapper;
import java.util.List;

/**
 * @author cy
 */

public interface Nmapper extends BaseMapper<Nuser> {

    IPage<Nuser> selectPageVo(Page<Nuser> page, @Param("new_name")String newName);

    List<Nuser> findByName(@Param("name") String name);

    String findName(String name);

    void saveObject(UserVO nuser);

    int updateBatch(@Param("ids") List<Integer> ids);

    int deleteBatch(@Param("ids") @Valid List<Integer> ids);

    int saveBatchNuser(List<Nuser> nuserList);

    List<Nuser> findBatchUser(@Param("ids") List<Integer> ids);

    List<Nuser> findByNameCollection(String name);
}
